﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using GalaSoft.MvvmLight;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("Device")]
    public class Device:ObservableObject
    {
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="DeviceType"    )]
         public string DeviceType { get; set; }
        /// <summary>
        ///  
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="DeviceAddress"    )]
         public string DeviceAddress { get; set; }

        private bool isSelected;
        [SugarColumn(IsIgnore =true)]
        public bool IsSelected
        {
            get { return isSelected; }
            set { Set<bool>(ref isSelected,value); }
        }

    }
}
